package cn.com.blueInfo.HaiYuan.myWorks.controller;

import cn.com.blueInfo.HaiYuan.myWorks.service.ApplyService;
import cn.com.blueInfo.utils.result.ResultInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 新建页面管理
 * @ClassName: ApplyController
 * @author xichen.su
 * @date 2019年5月16日  下午12:51:22
 */
@RestController
@RequestMapping("/operation/business/myWorks/apply")
public class ApplyController {

    @Autowired
    private ApplyService applyService;

    /**
     * 通过身份串获取新建项
     * @Title: queryApplyItemByIdentity
     * @param request
     * @return ResultInfo
     * @throws
     */
    @RequestMapping("/queryApplyItemByIdentity.do")
    public ResultInfo queryApplyItemByIdentity(HttpServletRequest request) {
        return applyService.queryApplyItemByIdentity(request);
    }

    /**
     * 通过身份串获取新建项数据
     * @Title: selectApplyItemByIdentity
     * @param request
     * @return ResultInfo
     * @throws
     */
    @RequestMapping("/selectApplyItemByIdentity.action")
    public ResultInfo selectApplyItemByIdentity(HttpServletRequest request) {
        return applyService.queryApplyItemByIdentity(request);
    }

}

